package com.dddd.blog.blogsp.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 喵星球的大橘
 */
@Data
@TableName("pms_author")
public class Author implements Serializable {
    private static final long serialVersionUID = 1264097438274297267L;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String username;

    private String nickname;

    private String uuid;

    private String icon;

    private String homeLink;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
